import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-10-28
 * Time: 20:56
 */
public class test_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            char[] str_a = in.nextLine().toCharArray();
            char[] str_b = in.nextLine().toCharArray();

            int[] hash = new int[26];

            for (char c : str_a) {
                hash[c - 'A']++;
            }
            boolean flag = false;
            for (char c : str_b) {
                if (--hash[c - 'A'] < 0) {
                    flag = true;
                }
            }
            if (flag) {
                System.out.println("No");
            } else {
                System.out.println("Yes");
            }
        }
    }
}
